package test.com.newproject;

import android.support.multidex.MultiDexApplication;

import com.blankj.utilcode.util.Utils;

import library.com.httphelper.HttpHelper;

/**
 * Created by zjh on 2017/8/14.
 */

public class NewApplication extends MultiDexApplication {
    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);
        HttpHelper.HttpConfig config = new HttpHelper.HttpConfig() {
            @Override
            public String baseUrl() {
                return "http://www.kuaidi100.com/";
            }

            @Override
            public String codeFieldName() {
                return "status";
            }

            @Override
            public int codeSuc() {
                return 200;
            }

            @Override
            public String msgFieldName() {
                return "message";
            }

            @Override
            public String dataFieldName() {
                return "data";
            }
        };

        HttpHelper.DEFAULT.config(this, config);
    }
}
